<!-- 仪表台 -->
<extend name="Public:layout" />
<block name="title"><{$authName}></block>

<block name="pluginCSS">
<link href="__PUBLIC__/admin/plugins/bootstrap-daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css"/>
</block>
<block name="CSS"></block>


<block name="loadJS">
<script src="__PUBLIC__/admin/plugins/bootstrap-daterangepicker/moment.js" type="text/javascript"></script>
<script src="__PUBLIC__/admin/plugins/bootstrap-daterangepicker/daterangepicker.js" type="text/javascript"></script>	

</block>
<block name="setJS">
<script src="__PUBLIC__/Admin/scripts/custom/index.js"></script>	
</block>
<block name="initJS">
Index.initDashboardDaterange();
$("#dashboard-report-range").on('apply.daterangepicker',function(){
	rdata = $("#dashboard-report-range span").html();
	indexUrl='<{:U('index')}>';
	$.post(indexUrl,{'dr':rdata},function(data){
		$('.dashboard-stat .number').eq(0).html(data.userNew);
		$('.dashboard-stat .number').eq(1).html(data.orderNew);
		$('.dashboard-stat .number').eq(2).html(data.shopNew);
		$('.dashboard-stat .number').eq(3).html(data.goodsNew);
	});
});
</block>

<block name="pagetitle">商城基本状态</block>
<block name="dateRange">
<li class="pull-right">
	<div id="dashboard-report-range" class="dashboard-date-range tooltips" data-placement="top" data-original-title="设置日期范围">
		<i class="fa fa-calendar"></i>
		<span>
		</span>
		<i class="fa fa-angle-down"></i>
	</div>
</li>					
</block>
<block name="page">

<!-- BEGIN DASHBOARD STATS -->
			<div class="row">
				<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
					<div class="dashboard-stat blue">
						<div class="visual">
							<i class="fa fa-comments"></i>
						</div>
						<div class="details">
							<div class="number">
								 <{$info['userSum']}>
							</div>
							<div class="desc">
								 商城用户
							</div>
						</div>
						<a class="more" href="<{:U('Users/index')}>">
							 查看更多 <i class="m-icon-swapright m-icon-white"></i>
						</a>
					</div>
				</div>
				<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
					<div class="dashboard-stat green">
						<div class="visual">
							<i class="fa fa-shopping-cart"></i>
						</div>
						<div class="details">
							<div class="number">
								 <{$info['orderSum']}>
							</div>
							<div class="desc">
								 商城订单
							</div>
						</div>
						<a class="more" href="<{:U('Orders/index')}>">
							 查看更多 <i class="m-icon-swapright m-icon-white"></i>
						</a>
					</div>
				</div>
				<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
					<div class="dashboard-stat purple">
						<div class="visual">
							<i class="fa fa-globe"></i>
						</div>
						<div class="details">
							<div class="number">
								 <{$info['shopSum']}>
							</div>
							<div class="desc">
								 商城店铺
							</div>
						</div>
						<a class="more" href="<{:U('Shops/index')}>">
							 查看更多 <i class="m-icon-swapright m-icon-white"></i>
						</a>
					</div>
				</div>
				<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
					<div class="dashboard-stat yellow">
						<div class="visual">
							<i class="fa fa-bar-chart-o"></i>
						</div>
						<div class="details">
							<div class="number">
								 &yen; <{$info['moneySum']}>
							</div>
							<div class="desc">
								 订单总额
							</div>
						</div>
						<a class="more" href="<{:U('Orders/index')}>">
							 查看更多 <i class="m-icon-swapright m-icon-white"></i>
						</a>
					</div>
				</div>
			</div>
			<!-- END DASHBOARD STATS -->

<div class="row ">
				<div class="col-md-6 col-sm-6">
					<div class="portlet box blue">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-bell-o"></i>待审核商品
							</div>
							<div class="actions">
								
							</div>
						</div>
						<div class="portlet-body">
							<div class="scroller" style="height: 300px;" data-always-visible="1" data-rail-visible="0">
								<ul class="feeds">
									<foreach name="goods"  item="val" key="key">
									<li>
										<div class="col1">
											<div class="cont">
												<div class="cont-col1">
													<div class="label label-sm label-info">
														<i class="fa fa-check"></i>
													</div>
												</div>
												<div class="cont-col2">
													<div class="desc">
														 <{$val['goodsName']}>
														<a href="<{:U('Goods/view',array('goodsId'=>$val['goodsId']))}>">
														<span class="label label-sm label-warning ">
															 查看并审核 <i class="fa fa-share"></i>
														</span>
														</a>
													</div>
												</div>
											</div>
										</div>
										<div class="col2"  style="width: 135px;margin-left: -135px;">
											<div class="date">
												 <{$val['createTime']}>
											</div>
										</div>
									</li>
								</foreach>
								</ul>
							</div>
							<div class="scroller-footer">
								<div class="pull-right">
									<a href="<{:U('Goods/pend')}>">
										 进入审核 <i class="m-icon-swapright m-icon-gray"></i>
									</a>
									 &nbsp;
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-6 col-sm-6">
					<div class="portlet box green tasks-widget">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-check"></i>待处理店铺
							</div>
							
							<div class="actions">
								
								
							</div>
						</div>
						<div class="portlet-body">
							<div class="scroller" style="height: 300px;" data-always-visible="1" data-rail-visible="0">
								<ul class="feeds">
									<foreach name="goods"  item="val" key="key">
									<li>
										<div class="col1">
											<div class="cont">
												<div class="cont-col1">
													<div class="label label-sm label-info">
														<i class="fa fa-check"></i>
													</div>
												</div>
												<div class="cont-col2">
													<div class="desc">
														 <{$val['shopName']}>
														<a href="<{:U('Shops/edit',array('shopId'=>$val['shopId']))}>">
														<span class="label label-sm label-warning ">
															 查看并处理 <i class="fa fa-share"></i>
														</span>
														</a>
													</div>
												</div>
											</div>
										</div>
										<div class="col2" style="width: 135px;margin-left: -135px;">
											<div class="date">
												 <{$val['createTime']}>
											</div>
										</div>
									</li>
								</foreach>
								</ul>
							</div>
							<div class="task-footer">
								<span class="pull-right">
									<a href="<{:U('Shops/pend')}>">
										 进入处理 <i class="m-icon-swapright m-icon-gray"></i>
									</a>
									 &nbsp;
								</span>
							</div>
						</div>
					</div>
				</div>
			</div>
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="portlet">
<div class="portlet-body">
<h4>服务器信息</h4>
    <p>
服务器软件：<?php echo $_SERVER['SERVER_SOFTWARE']?>
PHP版本：<?php echo PHP_VERSION ?>
MYSQL版本：<?php echo mysql_get_server_info() ?>
使用域名：<?php echo $_SERVER['SERVER_NAME']?></p>
    </div></div></div></div>
</block>

